#/usr/bin/env python
"""
Input handlers

These should be all of the pygame to engine translators. Essentially, they
should take in input and an object and call a method on the object appropriate
for the input.
"""

from pygame.locals import *

def handleInputForPlayer( input, player ):
	if input == K_UP:
		player.up()
	elif input == K_DOWN:
		player.down()
	elif input == K_RIGHT:
		player.right()
	elif input == K_LEFT:
		player.left()
	elif input == K_SPACE:
		player.launch()
	else:
		player.stop()
		return False
	return True
